Skip to content

PooledBatch record

Attributes: [DebuggerDisplay("PooledBatch: {_isDisposed}")]

Defined in

Namespace: ReactiveList.Reactive.Core Assembly: ReactiveList.Reactive.dll Full name: ReactiveList.Reactive.Core.PooledBatch<T> Modifiers: public sealed

Summary

View source (opens in a new tab)

Represents a batch of items obtained from an array pool, along with the number of valid items in the batch.

Applies to

net11.0, net10.0, net47, net471, net472, net48, net481

Class hierarchy
classDiagram
class PooledBatch~T~
class IDisposable {
    <>
}
IDisposable <|.. PooledBatch~T~
class IEquatable~PooledBatch~T~~ {
    <>
}
IEquatable~PooledBatch~T~~ <|.. PooledBatch~T~

Implements: IDisposable (opens in a new tab), IEquatable> (opens in a new tab)

Remarks

The underlying array is returned to the shared array pool when the batch is disposed. After calling Dispose, the contents of Items should not be accessed. This type is sealed and not intended for inheritance.

Constructors

NameSummary
.ctorRepresents a batch of items obtained from an array pool, along with the number of valid items in the batch.

Properties

NameSummary
ItemsThe array of items provided by the array pool. Must not be null.
CountThe number of valid items in the batch. Must be between 0 and the length of the Items array, inclusive.
ReturnToPoolA value indicating whether Items should be returned to ArrayPool (opens in a new tab) when disposed.

Methods

NameSummary
DisposeReleases all resources used by the current instance.
ToStringReturns a string that represents the current object.
GetHashCodeServes as the default hash function.
EqualsDetermines whether the specified object is equal to the current object.
Deconstruct

Operators

NameSummary
static op_Inequality
static op_Equality
Inherited members